/*
 *  anim.h
 *  KabukiQuantumFighter2
 *
 *  Created by Si-Mohamed Lamraoui on 09/10/10.
 *  Copyright 2010 UJF. All rights reserved.
 *
 */

#ifndef __ANIM_H__
#define __ANIM_H__

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "SDL.h"


typedef struct anim {
	SDL_Surface **images;
	int size;
	int current; // Current image
	int delay;
	int timer;
} anim_t;


anim_t* ANIM_create(const char *file, int size, int delay, int alpha);
void ANIM_Reset(anim_t *a);
SDL_Surface* ANIM_getImage(anim_t *a);



#endif